<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class WeekProfitReturn extends Model
{

    protected $table = 'week_profit_return';


    protected $fillable = [
        'user_id','profit_count','zt_volume','yj_volume',
        'zt_profit','yj_profit','tj_profit','ismail'
    ];


    public function admin_user()
    {
        return $this->belongsTo(AdminUser::class, 'user_id', 'id');
    }


    public function user_balance_log()
    {
        return $this->belongsTo(UserBalanceLog::class, 'user_id', 'user_id');
    }
    //
}
